home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_str.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  1KB  |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. import unittest
  5. from test import test_support, string_tests
  6.  
  7. class StrTest(string_tests.CommonTest, string_tests.MixinStrUnicodeUserStringTest, string_tests.MixinStrUserStringTest, string_tests.MixinStrUnicodeTest):
  8.     type2test = str
  9.     
  10.     def fixtype(self, obj):
  11.         return obj
  12.  
  13.     
  14.     def test_formatting(self):
  15.         string_tests.MixinStrUnicodeUserStringTest.test_formatting(self)
  16.         self.assertRaises(OverflowError, '%c'.__mod__, 4660)
  17.  
  18.  
  19.  
  20. def test_main():
  21.     test_support.run_unittest(StrTest)
  22.  
  23. if __name__ == '__main__':
  24.     test_main()
  25.  
  26.